package com.ruoyi.system.api.domain;

import java.math.BigDecimal;

import com.ruoyi.common.core.annotation.Excel;
import com.ruoyi.common.core.web.domain.BaseEntity;
import lombok.Data;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

/**
 * 缴费记录对象 school_payrecord
 * 
 * @author ruoyi
 * @date 2022-11-19
 */
@Data
public class SchoolPayrecord extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 主键 */
    private Long id;

    /** 所属校区 */
    private Long schoolId;

    @Excel(name = "所属校区")
    private String schoolName;

    /** 学生ID */
    private Long studentId;

    /** 学生姓名 */
    @Excel(name = "学生姓名")
    private String xsname;

    /** 学生电话 */
    @Excel(name = "学生电话")
    private String xsphone;

    /** 缴费金额 */
    @Excel(name = "业务金额")
    private BigDecimal amount;

    /** 购买次数 */
    @Excel(name = "购买次数")
    private Long num;

    /** 剩余金额 */
    @Excel(name = "剩余业务金额")
    private BigDecimal remainder;

    @Excel(name = "剩余次数")
    private Long remaindnum;

    @Excel(name = "实缴金额")
    private BigDecimal realAmount;

    /** 记录老师ID */
    private Long teacherId;

    @Excel(name = "记录老师用户名")
    private String teacherUsername;

    @Excel(name = "记录老师电话")
    private String teacherPhone;

    private String studentName;
    private String sex;
    private Long classesId;
    private String phonenumber;

    private String createAtstart;
    private String createAtend;

    private String order;
    private String orderType;

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("schoolId", getSchoolId())
            .append("studentId", getStudentId())
            .append("xsname", getXsname())
            .append("xsphone", getXsphone())
            .append("amount", getAmount())
            .append("num", getNum())
            .append("teacherId", getTeacherId())
            .append("createTime", getCreateTime())
            .toString();
    }
}
